<!DOCTYPE html>
<script>
if (window.testRunner)
    testRunner.setPrinting();
if (window.internals)
    internals.settings.setShouldPrintBackgrounds(true);
</script>
<style>
    @page { margin:0; }
    body { margin:0; }
</style>
<div style="width:50vw; height:50vw; background:hotpink;"></div>
